// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Author: Markus Gutschke

#ifndef CFG_MAP__
#define CFG_MAP__

struct Cfg;

struct Cfg *newCfg(const char *fname, int isDaemon);
void initCfg(struct Cfg *cfg, const char *fname, int isDaemon);
void destroyCfg(struct Cfg *cfg);
void deleteCfg(struct Cfg *cfg);
struct JSON *lockCfgAndGetJSON(struct Cfg *cfg);
void commitCfg(struct Cfg *cfg);
void unlockCfg(struct Cfg *cfg);

#endif  // CFG___
